package schoolWork.work03.text2;

public class methodMatch {
    double x = 5, y = 6;

    void test(double y) {
        System.out.println(y);
        test(this);

    }

    public String toString() {
        return x + ",  " + y;
    }

    void test(String a) {
        System.out.println(a);

    }

    void test(Object a) {
        System.out.println(a);
    }

    void test(int a){
        System.out.println(a);
    }

    public static void main(String[] args){
        methodMatch a = new methodMatch();
        a.test(8);
        a.test("hello");
    }
}
